import { createRouter, createWebHistory } from 'vue-router'
import { PlainRouter } from './PlainRouter'
import { beforEachAuthRouter } from './AuthRouter'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: PlainRouter,
})

beforEachAuthRouter(router)

export default router
